package com.uzhie.component;

import com.uzhie.web.dao.VideoDAO;
import com.uzhie.web.module.Video;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by TangFei on 2018/9/11.
 */
@Component
public class VideoComponent {

    @Autowired
    private VideoDAO videoDAO;

    public void addVideo(Video video) {
        videoDAO.insertSelective(video);
    }

}
